//
//  LocationResultModel.h
//  o_amap
//
//  Created by Q神 on 2021/4/13.
//

#import <Foundation/Foundation.h>

#import <AMapLocationKit/AMapLocationKit.h>

@class LocationQualityReport;

NS_ASSUME_NONNULL_BEGIN

@interface LocationResultModel : NSObject

@property (nonatomic, assign) NSInteger accuracy;
@property (nonatomic, copy) NSString *adCode;
@property (nonatomic, strong) NSNumber *altitude;
@property (nonatomic, copy) NSString *aoiName;
@property (nonatomic, assign) NSInteger bearing;
@property (nonatomic, copy) NSString *buildingId;
@property (nonatomic, copy) NSString *coordType;
@property (nonatomic, copy) NSString *floor;
@property (nonatomic, assign) NSInteger gpsAccuracyStatus;
@property (nonatomic, assign) BOOL isFixLastLocation;
@property (nonatomic, assign) BOOL isMock;
@property (nonatomic, assign) BOOL isOffset;
@property (nonatomic, strong) NSNumber *latitude;
@property (nonatomic, strong) NSNumber *longitude;
@property (nonatomic, copy) NSString *locationDetail;
@property (nonatomic, assign) NSInteger locationType;
@property (nonatomic, copy) NSString *poiName;
@property (nonatomic, copy) NSString *provider;
@property (nonatomic, assign) NSInteger satellites;
@property (nonatomic, assign) NSInteger trustedLevel;
@property (nonatomic, assign) NSInteger time;
@property (nonatomic, copy) NSString *callbackTime;
@property (nonatomic, strong) LocationQualityReport *locationQualityReport;


@property (nonatomic, copy) NSString *province;
@property (nonatomic, copy) NSString *country;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *cityCode;
@property (nonatomic, copy) NSString *district;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, strong) NSNumber *speed;
@property (nonatomic, copy) NSString *street;
@property (nonatomic, copy) NSString *streetNum;




@property (nonatomic, assign) NSInteger errorCode;
@property (nonatomic, copy) NSString *errorInfo;

+ (LocationResultModel *)initWithLocation:(CLLocation *)location reGeocode:(AMapLocationReGeocode *)reGeocode;

@end


@interface LocationQualityReport : NSObject

@property (nonatomic, copy) NSString *adviseMessage;
@property (nonatomic, copy) NSString *networkType;
@property (nonatomic, assign) NSInteger gpsSatellites;
@property (nonatomic, assign) NSInteger gpsStatus;
@property (nonatomic, assign) NSInteger netUseTime;
@property (nonatomic, assign) NSInteger isWifiAble;

@end


NS_ASSUME_NONNULL_END



